package com.mine.yyb.common.utils.email;



/**
 * 
 * <pre>
 * <一句话功能简述>
 * 信件
 * <功能详细描述>
 * </pre>
 * 
 * @author 彭海明
 * @version [版本号, 2015年5月15日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class MineMailVO
{
    // 收件人email地址
    private String emailAddress;
    
    // 收件人收到的email主题
    private String emailSubject;
    
    // 收件人收到的email内容
    private String emailContent;
    
    // 收件人收到的email内容编码格式
    private String contentCharset = "text/html; charset=utf-8";

    /**
     * 获取 emailAddress
     * @return 返回 emailAddress
     */
    public String getEmailAddress()
    {
        return emailAddress;
    }

    /**
     * 设置 emailAddress
     * @param 对emailAddress进行赋值
     */
    public void setEmailAddress(String emailAddress)
    {
        this.emailAddress = emailAddress;
    }

    /**
     * 获取 emailSubject
     * @return 返回 emailSubject
     */
    public String getEmailSubject()
    {
        return emailSubject;
    }

    /**
     * 设置 emailSubject
     * @param 对emailSubject进行赋值
     */
    public void setEmailSubject(String emailSubject)
    {
        this.emailSubject = emailSubject;
    }

    /**
     * 获取 emailContent
     * @return 返回 emailContent
     */
    public String getEmailContent()
    {
        return emailContent;
    }

    /**
     * 设置 emailContent
     * @param 对emailContent进行赋值
     */
    public void setEmailContent(String emailContent)
    {
        this.emailContent = emailContent;
    }

    /**
     * 获取 contentCharset
     * @return 返回 contentCharset
     */
    public String getContentCharset()
    {
        return contentCharset;
    }

    /**
     * 设置 contentCharset
     * @param 对contentCharset进行赋值
     */
    public void setContentCharset(String contentCharset)
    {
        this.contentCharset = contentCharset;
    }

    /**
     * 重载方法
     * @return
     */
    @Override
    public String toString()
    {
        return "MineMailVO [emailAddress=" + emailAddress + ", emailSubject=" + emailSubject + ", emailContent="
            + emailContent + ", contentCharset=" + contentCharset + "]";
    }

    /**
     * 重载方法
     * @return
     */
    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((contentCharset == null) ? 0 : contentCharset.hashCode());
        result = prime * result + ((emailAddress == null) ? 0 : emailAddress.hashCode());
        result = prime * result + ((emailContent == null) ? 0 : emailContent.hashCode());
        result = prime * result + ((emailSubject == null) ? 0 : emailSubject.hashCode());
        return result;
    }

    /**
     * 重载方法
     * @param obj
     * @return
     */
    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        MineMailVO other = (MineMailVO)obj;
        if (contentCharset == null)
        {
            if (other.contentCharset != null)
                return false;
        }
        else if (!contentCharset.equals(other.contentCharset))
            return false;
        if (emailAddress == null)
        {
            if (other.emailAddress != null)
                return false;
        }
        else if (!emailAddress.equals(other.emailAddress))
            return false;
        if (emailContent == null)
        {
            if (other.emailContent != null)
                return false;
        }
        else if (!emailContent.equals(other.emailContent))
            return false;
        if (emailSubject == null)
        {
            if (other.emailSubject != null)
                return false;
        }
        else if (!emailSubject.equals(other.emailSubject))
            return false;
        return true;
    }
    
    
}
